*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: var(--vscode-editorWidget-background);
    height: 100%;
    width: 100%;
    padding: 0;
}


.book-list{
    
}
.book-item{
    color: #fff;
    padding:5px 10px;
    cursor: pointer;
    opacity: 0.8;
    overflow: hidden;
    position: relative;
    font-size: var(-vscode-editor-font-size);
    color: var(-vscode-editor-font-color);
    /* border-bottom: 1px solid #2e3e47; */
    &:hover{
        opacity: 1;
    }
}
.book-item .name{
    line-height:2em;
    white-space: nowrap; /* 设置文本为不可换行模式 */
    text-overflow: ellipsis; /* 在文本溢出容器时显示省略号 */
    overflow: hidden; /* 隐藏多余的文本内容 */
}
.book-item .delete{
    position: absolute;
    right: 10px;
    line-height:2em;
    top: 5px;
    color: var(-vscode-editor-font-color);
    font-size: 0.8em;
    opacity: 0.3;
}
.book-item .data{
    /* float: right; */
    /* flex-shrink: 0; */
    text-align: right;
    font-size: 14px;
    line-height: 16px;
    color: #999;
    display: flex;
    align-content: center;
}
.book-item .data .all{
    text-align: right;
    flex: 1;
    width: 50%;
}
.book-item .data .cur{
    flex: 1;
    width: 50%;
    text-align: left;
    white-space: nowrap; /* 设置文本为不可换行模式 */
    text-overflow: ellipsis; /* 在文本溢出容器时显示省略号 */
    overflow: hidden; /* 隐藏多余的文本内容 */
}
.book-list .default{
    font-size: 18px;
    line-height: 24px;
    padding: 100px 0;
    color: #2e3e47;
    text-align: center;
    cursor: pointer;
}
.book-list .default span{
    color: #999;
}


.fixed-action{
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    line-height: 40px;
    z-index: 100;
    .action-btn{
        flex: 1;
        cursor: pointer;
        font-size: var(-vscode-editor-font-size);
        color: var(-vscode-editor-font-color);
        opacity: 0.5;
    }
}



.form{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px;
    bottom: 0;
    right: 0;
}
.form .input{
    padding: 0 10px;
    margin-bottom: 20px;
}
.form .input label{
    font-size: 14px;
    color: #999;
    line-height: 18px;
    margin-bottom: 10px;
    display: block;
}
.form .input input,.form .input select{
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background-color: var(--vscode-input-background);
    outline: none;
    border: 0;
    color: var(--vscode-input-foreground);
    font-size: 14px;
    padding: 0 5px;
    box-sizing: border-box;
}
.form .input .file-input{
    position: relative;
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background-color: var(--vscode-input-background);
    line-height: 40px;
    text-align: center;
}
.form .input .file-input input{
    opacity: 0;
    position: absolute;
    
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}
.form .submit-button{
    height: 40px;
    margin-top: 40px;
    font-size: 14px;
    line-height: 40px;
    background-color: var(--vscode-input-background);
    color: var(--vscode-input-foreground);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.loading-box{
    display: none;
    position: fixed;
    left: 0; 
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: var(--vscode-editorWidget-background);
    opacity: 0.8;
}
.loading {
    border-radius: 50%;
    width: 14px;
    height: 14px;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.loading-text{
    position: absolute;
    top: calc(50% + 36px);
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    opacity: 0.5;
}
.loading::before, .loading::after {
    content: "";
    display: block;
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background-color: #3DA9F2; /* 设置颜色 */
    animation: spin 1s infinite linear; /* 添加旋转动画 */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.delete-popup{
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
}
.delete-popup::before{
    content: "";
    display: block;
    background-color: var(--vscode-editorWidget-background);
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}
.delete-popup .popup-main{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15%;
    width: 70%;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--vscode-editor-background);
    
}
.delete-popup .popup-content{
    font-size: 14px;
    padding: 14px;
    text-align: left;
    line-height: 24px;
    opacity: 0.7;
}
.delete-popup .popup-button{
    padding-bottom: 14px;
    text-align: right;
}
.delete-popup .popup-button .btn{
    display: inline-block;
    padding: 0 10px;
    font-size: 14px;
    margin-right: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.delete-popup .popup-button .btn:hover{
    opacity: 1;
}